<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>v-pre 指令</title>
</head>
<body>
<div id="app">
    <!--  保持所在元素的内容不进行任何处理  -->
    <h1 v-pre style="background-color: red">{{ info }}</h1>
    <h1 style="background-color: red">{{ message }}</h1>

    <h1 v-pre style="background-color: green" v-text="info">Hello</h1>
    <h1 style="background-color: green" v-text="message">Hello</h1>
</div>

<script type="module">
    import {createApp} from "../../../js/vue.esm-browser.js";

    let app = createApp(
        {
            setup() {
                let info = 'Hello, World!'
                let message = 'Hello, Vue!'

                return {
                    info, message
                }
            }
        }
    );

    app.mount("#app")
</script>
</body>
</html>